package com.igeek.config.ch03.circle.singleton;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class A {
    //单例的setter注入
    @Autowired
    private B b;

    @Autowired
    private  C c;

    public void test (){
        System.out.println(b);
    }

}
